import React, { useState } from 'react';
import { Input } from 'antd';
import debounce from 'lodash/debounce';
import { useEffect } from 'react';

export default () => {

    const [value, setValue] = useState('');

    const handelChangeValue = debounce((value) => {
        setValue(value);
    }, 3000)

    return (
        <div>
            {`您输入的值为：${value}`}
            <Input placeholder='请输入值122441' onChange={(e) => handelChangeValue(e.target.value)} />
        </div>
    )
}